<template>
  <div>
    <el-button type="text" @click="dialogTableVisible = true">打开嵌套表格的 Dialog</el-button>

    <el-dialog title="收货地址" :visible.sync="dialogTableVisible">
      <el-table :data="gridData">
        <el-table-column property="date" label="日期" width="150"></el-table-column>
        <el-table-column property="name" label="姓名" width="200"></el-table-column>
        <el-table-column property="address" label="地址"></el-table-column>
      </el-table>
    </el-dialog>
  </div>
</template>

<script>
export default {
  name: '4.ElementUI-Dialog',
  components: { },
  data () {
    return {
      dialogTableVisible: false,
      gridData: [
        {
          date: '2020-2-14',
          name: '老廖',
          address: '四川成都'
        },
        {
          date: '2020-2-14',
          name: '老韦',
          address: '四川成都'
        },
        {
          date: '2020-2-14',
          name: '老刘',
          address: '四川成都'
        },
        {
          date: '2020-2-14',
          name: '老鲍',
          address: '四川成都'
        }
      ]
    }
  }
}
</script>

<style scoped>

</style>
